package user

import (
	v1 "Project/api/v1"
	"github.com/gin-gonic/gin"
)

type UserSaleRouter struct{}

func (u *UserSaleRouter) InitUserSaleRouter(Router *gin.RouterGroup) {
	userSaleRouter := Router.Group("api/user-sale")
	userSaleApi := v1.ApiGroupApp.UserApiGroup.UserSaleApi
	{
		userSaleRouter.POST("", userSaleApi.AddUserSale)
		userSaleRouter.DELETE(":sale_id", userSaleApi.DeleteUserSale)
		userSaleRouter.PUT("", userSaleApi.UpdateUserSale)
		userSaleRouter.GET("", userSaleApi.GetUserSale)
		userSaleRouter.PUT("info", userSaleApi.UpdatePersonInfo)
		userSaleRouter.GET("info", userSaleApi.GetPersonInfo)
		userSaleRouter.PUT("password", userSaleApi.UpdatePassword)
	}
}
